import React from "react";
import { HomeIcon, FileText, Image } from "lucide-react";
import Index from "./pages/Index.jsx";
import PdfPreview from "./pages/PdfPreview.jsx";
import JpgPreview from "./pages/JpgPreview.jsx";

/**
 * Central place for defining the navigation items. Used for navigation components and routing.
 */
export const navItems = [
  {
    title: "首页",
    to: "/",
    icon: <HomeIcon className="h-4 w-4" />,
    page: <Index />,
  },
  {
    title: "PDF预览",
    to: "/pdf/pdf-js",
    icon: <FileText className="h-4 w-4" />,
    page: <PdfPreview />,
  },
  {
    title: "JPG预览",
    to: "/jpg/img",
    icon: <Image className="h-4 w-4" />,
    page: <JpgPreview />,
  },
];
